<?php
session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
require RootDir."/".$SystemConest[1]."/system/classsys/function.php";
require "function.php";

$mydb=new YYBDB();
$TableName= $mydb->getTableName($MenuId);
CheckRule($MenuId,$mydb,$TableName,"");//检查登陆权限

?>


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
<title>增加单页信息</title>
</head>

<body>
<?php
    
 
    $MenuId=$_REQUEST["MenuId"];
	if(mb_strlen($MenuId)<1)
	{
		$MenuId=0;
	}
	
	$mydb=new YYBDB();
	
	$ID=GetOnePageID($mydb,$MenuId);
	
	if($ID==0)
	{
		gourl("/".$SystemConest[1]."/system/menusys/Sys_Add.php?MenuId=" .$MenuId,1);
	}
	else
	{
		gourl("/".$SystemConest[1]."/system/menusys/Sys_Update.php?MenuId=".$MenuId ."&ID=".$ID,1);
	}

	?>
</body>
</html>
